import {Component, OnInit, Output, EventEmitter, Input} from "@angular/core";

class Rank {
  rank: number;
  name: string;
  trend: boolean;
  position: number;
  index: number;
  background: string;
}

@Component({
  selector: 'world-ranking-card',
  templateUrl: './world-ranking.component.html'
})

export class WorldRankingComponent {
  ranks: Array<Rank> = [
    {
      rank: 2,
      name: "国家电网",
      trend: true,
      position: 2,
      index : 1,
      background: "#FFFFFF",
    },
    {
      rank: 101,
      name: "国家能源投资集团",
      trend: false,
      position: 1,
      index :  2,
      background: "#FFFFFF",
    },
    {
      rank: 100,
      name: "南方电网",
      trend: false,
      position: 10,
      index: 3,
      background: "#ECF7FF",
    },
    {
      rank: 182,
      name: "中国电力建设集团",
      trend: true,
      position: 5,
      index: 4,
      background: "#FFFFFF",
    },
    {
      rank: 289,
      name: "中国华能集团",
      trend: true,
      position: 0,
      index: 5,
      background: "#FFFFFF",
    },
    {
      rank: 333,
      name: "中国能源建设集团",
      trend: false,
      position: 3,
      index: 6,
      background: "#FFFFFF",
    }
  ];
}
